package com.lin.gobang;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

    private Button youbtn;
    private Button signbtn;
    private Button rulebtn;
    private Button signinbtn;
    private Button rankbtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        youbtn= (Button) findViewById(R.id.youbtn);
        youbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent i=new Intent(MainActivity.this,Choose.class);
                startActivity(i);
            }
        });
        signbtn=(Button) findViewById(R.id.signbtn);
        signbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(MainActivity.this,Sign.class);
                startActivity(intent);
            }
        });
        rulebtn= (Button) findViewById(R.id.rulebtn);
        rulebtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intents=new Intent(MainActivity.this,Rule.class);
                startActivity(intents);
            }
        });
        signinbtn= (Button) findViewById(R.id.signinbtn);
        signinbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(MainActivity.this,Signin.class);
                startActivity(intent);
            }
        });
        rankbtn= (Button) findViewById(R.id.rank);
        rankbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intentt=new Intent(MainActivity.this,Rank.class);
                startActivity(intentt);
            }
        });
    }

}